﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IntroMVC4.Models.Domain
{
    public class ProductD
    {
        public long Id { get; set; }
        public string SKU { get; set; }
        public string GTIN { get; set; }
        public bool? IsActive { get; set; }
        public string Name { get; set; }
        public int Quantity { get; set; }
        public string PrincipalName { get; set; }
    }
    public class ItemClass
    {
        public string Text { get; set; }
        public string Value { get; set; }
    }
    public class AttributeProductD
    {
        public long ProductId { get; set; }
        public List<AttributeProductA> ListAttributeProduct { get; set; }
    }
    public class AttributeProductA
    {
        public int ProductCategoryId { get; set; }
        public long ProductId { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }
    }
    public class ProductSKU
    {
        public int? ProductCatalogId { get; set; }
        public List<AttributeProductD> ListAttributeProductD { get; set; }
        public string SKU { get; set; }
        public string Name { get; set; }
        public string GTIN { get; set; }
        public int Quantity { get; set; }
        [Display(Name="Nhà sản xuất")]
        public int? PrincipalCategoryId { get; set; }
        public List<PrincipalCategory> PrincipalCategories { get; set; }
        public bool? IsActive { get; set; }
    }
}
